	<?php $this->genBlockBegin ($block) ?>

	<?php
	$siteName = $this->sitename();
	if ($this->getParam('logoType')=='image'): ?>
	<h1 class="logo">
		<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
	</h1>
	<?php else:
	$logoText = (trim($this->getParam('logoType-text-logoText'))=='') ? $siteName : $this->getParam('logoType-text-logoText');
	$sloganText = (trim($this->getParam('logoType-text-sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('logoType-text-sloganText');?>
	<div class="logo-text">
		<h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
		<p class="site-slogan"><?php echo $sloganText;?></p>
	</div>
	<?php endif; ?>

	<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
	<!-- jdoc:include type="menu" level="0" / -->
	<?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
	<div id="ja-subnav" class="clearfix">
	<?php $jamenu->genMenu (1); ?>
	<!-- jdoc:include type="menu" level="1" / -->
	</div>
	<?php endif;?>

	<?php $this->genBlockEnd ($block) ?>